<!--
 * @Author: YSM
 * @Description: id-card
 * @Date: 2023-10-08 16:49:13
 * @LastEditTime: 2024-05-29 08:41:42
 * @FilePath: \my_vue2_demo\src\views\IdCard\index.vue
-->
<template>
  <div class="id-card">
    <div class="card">
      <div class="top-radius">
        <p></p>
      </div>
      <div class="photo-img">
        <img :src="photo" alt="" />
      </div>
      <div class="user-info">
        <p><span>姓 名：</span></p>
        <p><span>部 门：</span></p>
        <p><span>职 位：</span></p>
      </div>
    </div>
  </div>
</template>
<script>
import idCardPhoto from "../../assets/imgs/id-card-photo.png";
export default {
  data() {
    return {
      photo: idCardPhoto,
    };
  },
};
</script>
<style lang="less" scoped>
.id-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  .card {
    width: 300px;
    height: 500px;
    margin-top: 100px;
    border-radius: 10px;
    padding: 10px 20px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    box-sizing: border-box;

    .top-radius {
      width: 100%;
      height: 30px;
      display: flex;
      justify-content: center;

      p {
        width: 100px;
        height: 70%;
        border-radius: 30px;
        background: #617172;
      }
    }

    .photo-img {
      width: 100%;
      height: 140px;
      display: flex;
      justify-content: center;
      margin-top: 40px;

      img {
        display: inline-block;
        width: 140px;
        height: 100%;
        background: red;
        border-radius: 8px;
      }
    }

    .user-info {
      width: 100%;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      margin-top: 40px;

      p {
        width: 54%;
        margin-bottom: 20px;

        span {
          font-size: 16px;
          font-weight: 600;
          font-family: "Franklin Gothic Medium", "Arial Narrow", Arial,
            sans-serif;
        }
      }
    }
  }
}
</style>
